package com.Jin.service;

import com.Jin.mapper.DepartmentMapper;
import com.Jin.pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;



@Component
public class DepartmentServiceImpl implements DepartmentService{


    @Autowired
    private DepartmentMapper departmentMapper;


    public DepartmentServiceImpl(DepartmentMapper departmentMapper) {
        this.departmentMapper = departmentMapper;
    }

    @Override
    public List<Department> getDepartment() {
        return departmentMapper.getDepartment();
    }
}
